<template>
  <Tooltip :title="getTitle" placement="bottom" :mouseEnterDelay="0.5">
    <span @click="handleToggle">
      <FundProjectionScreenOutlined />
    </span>
  </Tooltip>
</template>
<script lang="ts">
  import { defineComponent } from 'vue';
  import { Tooltip } from 'ant-design-vue';
  import { FundProjectionScreenOutlined } from '@ant-design/icons-vue';
  // import { useUserStore } from '/@/store/modules/user';
  import { useFullscreen } from '@vueuse/core';
  export default defineComponent({
    name: 'BigScreen',
    components: { FundProjectionScreenOutlined, Tooltip },

    setup() {
      const getTitle = '大屏';
      // const userStore = useUserStore();
      const handleToggle = () => {
        // userStore.setBigFullScreen(true);// isFullscreen
        const { toggle } = useFullscreen(document.getElementById('content-layout'));
        toggle();
      };
      return {
        getTitle,
        handleToggle,
      };
    },
  });
</script>
